export const DataGridSchema = {
    id: 'dataGrid',
    type: 'DataGrid',
    controlSource: 'Farris',
    appearance: null,
    disable: false,
    dataSource: null,
    fields: [],
    focusedItem: null,
    focusedIndex: null,
    pagination: true,
    lockPagination: 'viewModel.stateMachine&&viewModel.stateMachine[\'editable\']',
    showPageSize: false,
    identifyField: null,
    multiSelect: false,
    showCheckbox: false,
    selectable: null,
    itemTemplate: null,
    toolBar: null,
    summary: null,
    showAllCheckbox: false,
    fieldEditable: false,
    editable: null,
    groupable: false,
    group: null,
    showGroupColumn: true,
    groupFormatter: null,
    groupStyler: null,
    groupFooter: false,
    fitColumns: false,
    onSelectionChange: '',
    styler: '',
    fixedColumns: [],
    enableCommandColumn: false,
    onEditClicked: '',
    onDeleteClicked: '',
    commandColumnWidth: 120,
    showCommandColumn: true,
    checkedChange: null,
    disableRow: null,
    beforeSelect: null,
    beforeUnSelect: null,
    beforeCheck: null,
    beforeUnCheck: null,
    multiSort: false,
    autoFitColumns: false,
    showFooter: false,
    footerTemplate: '',
    footerDataFrom: 'client',
    footerDataCommand: null,
    footerHeight: 29,
    filterType: 'none',
    enableFilterRow: false,
    enableSmartFilter: false,
    remoteFilter: false,
    showFilterBar: false,
    showBorder: false,
    striped: true,
    showLineNumber: false,
    lineNumberTitle: '',
    appendRow: null,
    pageChange: null,
    dblClickRow: null,
    useControlPanel: false,
    autoHeight: false,
    rowClick: null,
    showSelectedList: false,
    selectedItemFormatter: null,
    lineNumberWidth: 36,
    enableMorePageSelect: false,
    headerWrap: false,
    emptyTemplate: null,
    emptyDataHeight: 36,
    maxHeight: 300,
    rowHeight: 30,
    enableHighlightCell: false,
    enableEditCellStyle: false,
    showRowGroupPanel: false,
    enableDragColumn: false,
    groupSummaryPosition: 'groupFooterRow',
    clearSelectionsWhenDataIsEmpty: true,
    keepSelect: true,
    enableEditByCard: 'none',
    pageSizeChanged: null,
    visible: true,
    showGotoInput: false,
    scrollBarShowMode: 'auto',
    showScrollArrow: false,
    footerPosition: 'bottom',
    footerStyler: null,
    selectOnEditing: false,
    selectionMode: 'default',
    enableContextMenu: false,
    disableGroupOnEditing: true,
    enableSimpleMode: false,
    enableScheme: false,
    beforeEdit: null,
    nowrap: true,
    mergeCell: false,
    remoteSort: false,
    columnSorted: null,
    checkOnSelect: false,
    selectOnCheck: false,
    enableHeaderGroup: false,
    headerGroup: null,
    AutoColumnWidthUseDblclick: true,
    virtualized: false,
    virtualizedAsyncLoad: false,
    scrollYLoad: null,
    pagerContentTemplate: null,
    expandGroupRows: true,
    useBlankWhenDataIsEmpty: false,
    checked: null,
    unChecked: null,
    checkAll: null,
    unCheckAll: null,
    filterChanged: null
};

/** 单列元数据 */
export const GridFieldSchema = {
    id: 'col',
    type: 'GridField',
    controlSource: 'Farris',
    caption: '',
    binding: null,
    appearance: null,
    size: {
        width: 120
    },
    readonly: false,
    dataField: '',
    dataType: '',
    displayTemplate: null,
    captionTemplate: null,
    editor: null,
    draggable: false,
    frozen: 'none',
    sortable: true,
    enumData: null,
    idField: 'value',
    textField: 'name',
    aggregate: { type: 'none', formatter: { type: 'none' } },
    groupAggregate: { type: 'none', formatter: { type: 'none' } },
    linkedLabelEnabled: false,
    linkedLabelClick: null,
    textAlign: 'left',
    hAlign: 'left',
    vAlign: 'middle',
    formatter: { type: 'none' },
    showTips: false,
    tipContent: null,
    multiLanguage: false,
    visible: true,
    enableFilter: false,
    headerStyler: '',
    styler: '',
    localization: false,
    allowGrouping: true,
    tipMode: 'auto',
    captionTipContent: '',
    captionTipStyler: ''
};
/**
 * DataGrid右键菜单项元数据
 */
export const DataGridContextMenuItemSchema = {
    id: '',
    title: '',
    icon: '',
    visible: true,
    disable: false,
    children: [],
    click: null
};
